<!doctype html>
<html>
<head> 
<title>智慧家校系统</title> 
<#include "../../commonUse.html"/>

<script src="${ctx.contextPath}/pages/system/sysrole/js/role_update.js"></script>
<script src="${ctx.contextPath}/pages/system/sysrole/js/module_tree2.js"></script>
<script src="${ctx.contextPath}/js/validator.js"></script>
<script>
 var moduleIds = "${moduleIds}";
 var moduleNames = "${moduleNames}";
</script>
</head>
<body>

<div  class="list-template">
<div class="m-head m-head-p">
 <div class="left"><label class="title">角色修改</label></div>
 <div class="right">
    <div class="flow"></div>
 </div>
 <img class="panel-close" src="../images/card-close.png"
                onclick="parent.closeDialogWin();" />  
</div>
<div class="m-page">
	<form method="post" id="form1" name="form1" >
		<input type="hidden" id="recId" name="recId" value="${role.REC_ID}">
		<div class="l-edit" id='main_div'>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td class="font" width="15%">角色名称：<span class="empt">*</span></td>
				<td width="35%"><input type="text" value="${role.ROLE_NAME}" id="roleName" name="roleName" class="text"
								 maxlength="20" dataType="LimitA" min="1" max="20" msg="角色名称不能为空且少于20个字节."
				 ></input></td>
			</tr>
	     	<tr>
				<td width="15%" class="font">描述：<span class="empt">*</span></td>
				<td width="35%"><input type="text" value="${role.ROLE_DEC}" id="roleDec" name="roleDec" class="text"
								 maxlength="50" dataType="LimitA" min="1" max="50" msg="描述不能为空且少于50个字节."
				 ></input></td>
			</tr>				
			<tr>
			<td class="font" width="15%">模块分配：<span class="empt">*</span></td>
			<td>
			<div >
				<ul class="list">
					<li class="title"><input id="citySel" type="text" readonly value="" style="width:150px;" onclick="showMenu();" class="text" /> </li>
				</ul>
			</div>
	     	<div id="menuContent" class="menuContent" style="display:none; position: absolute;">
				<ul id="treeDemo" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
				<input type="hidden"    id="moduleIds" name="moduleIds" value=""  dataType="LimitA"  msg="模块分配不能为空." />
			</div>
			</td>
			</tr>			
		</table>
		<div class="edit-btn">
        	<ul>        
      			<li id="checkSaveBtn" class="btn" onclick="roleUpdate();">保 存</li>
       		</ul>
     	</div>
     	<div class="clear"></div>
		</div>
	</form>	
	</div>
</div>
</body>
</html>